<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script type="text/javascript">  
     function test(){
            var student={"name":"test"};  
           /*  var data1={"name":"test"};  
            var data2={"name":"张三"};  */ 
            /* saveDataAry.push(data1);  
            saveDataAry.push(data2);   */       
            $.ajax({ 
                type:"POST", 
                url:"/SST/t/login2.do", 
                dataType:"json",      
                contentType:"application/json",               
                data:JSON.stringify(student), 
                success:function(data){ 
                   alert(data)                   
                } 
             }); 
      }
</script>
</head>
<body>
    <input type="button" onclick="test()" value="测试">
</body>
</html>